package com.amado.course37CharStream;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class S02FileWriter {
	public static void main(String[] args) throws IOException {
		File file = new File("D:\\fw.txt");
		if(!file.exists()) {
			file.createNewFile();
		}
		FileWriter fw = new FileWriter(file,true);
		fw.write("你好，今天是星期四\r\n");
		fw.close();
		System.out.println("成功");
	}
}
